package com.xebia.lightning.domain;

import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.json.RooJson;
import org.springframework.roo.addon.layers.repository.mongo.RooMongoEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooMongoEntity
@RooJson
public class Job {

    @NotNull
    private String skills;

    @NotNull
    private String location;

    @NotNull
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date postedDate;

    @NotNull
    private String jobUrl;

    @NotNull
    private String jobTitle;

    @Size(max = 20000)
    private String description;

    @NotNull
    private String countryName;

    @NotNull
    private long tweetId;
}
